package com.hmdp.entity;

// 定义一个季节枚举类
public enum Season {
    // 定义春季
    spring("春"),
    // 定义夏季
    summer("夏"),
    // 定义秋季
    autumn("秋"),
    // 定义冬季
    winter("冬");
    private String name;

    private Season(){}

    private Season(String name){
        this.name = name;
    }

    public static void main(String[] args) {
        System.out.println(Season.spring.name);
        System.out.println(Season.summer);
        System.out.println(Season.autumn);
        System.out.println(Season.winter.name);
    }
}

